<?php

// Admin pages have a custom header/footer

pref('[Loop]/views/pathToSnippetFooter.html', '/[Loop]/Html/Snippet.Admin.Footer.html');
pref('[Loop]/views/pathToSnippetHeader.html', '/[Loop]/Html/Snippet.Admin.Header.html');


// Get variables

$directory = fv('directory', true);
$extensionId = fv('extensionId', true);
$fileName = fv('fileName', true);


// Initialize result variable

$result = array();


// Get the list of files

app()->getApiManager()->getApisInFile($extensionId, $directory, $fileName, $result);


// Prepare variables for the view

v('apis', $result[$extensionId][$directory][$fileName]);
v('directory', $directory);
v('extensionId', $extensionId);
v('fileName', $fileName);

?>